home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / GIFLIB12.ARJ / HERC2GIF.C < prev    next >
C/C++ Source or Header  |  1990-09-03  |  1KB  |  27 lines

  1. /*****************************************************************************
  2. *   "Gif-Lib" - Yet another gif library.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.1, Jun. 1989   *
  5. ******************************************************************************
  6. * Program to dump the hercules graphic screen into a GIF file             *
  7. ******************************************************************************
  8. * History:                                     *
  9. * 26 Jun 89 - Version 1.0 by Gershon Elber.                     *
  10. *****************************************************************************/
  11.  
  12. #include <graphics.h>
  13. #include "gif_lib.h"
  14.  
  15. #define DEFAULT_NAME    "hercules.gif"
  16.  
  17. /******************************************************************************
  18. * Simple - isnt it?                                  *
  19. ******************************************************************************/
  20. void main(int argc, char **argv)
  21. {
  22.     if (argc == 2)
  23.     DumpScreen2Gif(argv[1], HERCMONO, HERCMONOHI, 0, 0);
  24.     else
  25.     DumpScreen2Gif(DEFAULT_NAME, HERCMONO, HERCMONOHI, 0, 0);
  26. }
  27.